<?php


namespace App\Models\Field;

class PackageField extends BaseField
{
    public static function getFormats($scene = self::BASE_INFO): array
    {
        $baseFormats = [
            'id' => static function ($model) {
                return $model['collect_package_id'];
            },
            'user_id',
            'name',
            'description',
            'total',
            'is_default',
            'is_deleted',
            'is_public',
            'updated_at',
        ];

        return $formats[$scene] ?? $baseFormats;
    }
}
